package com.tianheng.wanzhou.datacollecting.db.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author yjw
 * @since 2020-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("air_compressor_fun1")
public class AirCompressorFun1 extends Model<AirCompressorFun1> implements Serializable{


    /**
     * 主传动马达行程/停止(1y)/瞬时起动
     */
    @TableField("main_drive_motor_trip")
    private Integer mainDriveMotorTrip;

    /**
     * 辅助油泵输出
     */
    @TableField("oil_pump_output")
    private Integer oilPumpOutput;

    /**
     * 喇叭输出
     */
    @TableField("horn_output")
    private Integer hornOutput;

    /**
     * 报置灯输出
     */
    @TableField("alarm_light_output")
    private Integer alarmLightOutput;

    /**
     * 启动指示灯输出
     */
    @TableField("trip_light_output")
    private Integer tripLightOutput;

    /**
     * 冷却水电磁阀输出心液雾电流计
     */
    @TableField("cooling_water_solenoid_output")
    private Integer coolingWaterSolenoidOutput;

    /**
     * 单位启动
     */
    @TableField("unit_start")
    private Integer unitStart;

    /**
     * 定位止损
     */
    @TableField("unit_stop")
    private Integer unitStop;

    /**
     * 远程应答
     */
    @TableField("remote_ack")
    private Integer remoteAck;

    /**
     * 远程重置
     */
    @TableField("remote_reset")
    private Integer remoteReset;

    /**
     * 零
     */
    private Integer zero1;

    /**
     * 零
     */
    private Integer zero2;

    /**
     * 零
     */
    private Integer zero3;

    /**
     * 零
     */
    private Integer zero4;

    /**
     * 普通报警灯
     */
    @TableField("common_alarm_light")
    private Integer commonAlarmLight;

    /**
     * 普通脱扣灯远传普通跳线
     */
    @TableField("common_trip_light")
    private Integer commonTripLight;

    /**
     * 启动触点输出
     */
    @TableField("remote_common_trip")
    private Integer remoteCommonTrip;

    /**
     * 短暂停留
     */
    @TableField("permissive_start_contact_out")
    private Integer permissiveStartContactOut;

    /**
     * 输入可读取
     */
    @TableField("momentary_stop")
    private Integer momentaryStop;

    /**
     * 公司编号
     */
    @TableField("company_id")
    private Integer companyId;

    /**
     * 车间编号
     */
    @TableField("workshop_id")
    private Integer workshopId;

    /**
     * 设备类型
     */
    @TableField("machine_type")
    private Integer machineType;

    /**
     * 机器编号
     */
    @TableField("machine_id")
    private String machineId;


    @TableId(value = "machine_ip", type = IdType.INPUT)
    private String machineIp;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    @Override
    protected Serializable pkVal() {
        return this.machineId;
    }

}
